#pragma once

class SC_Size
{
private:
	static UINT32	m_width;
	static UINT32	m_height;
	static sf::Font *m_font1;
public:
	static void setWidth(UINT32 w) { m_width = w; }
	static void setHeight(UINT32 h) { m_height = h; }

	static UINT32 width() { return m_width; }
	static UINT32 height() { return m_height; }

	static void		setFont1(std::string filename)	{ m_font1->loadFromFile(filename); }
	static sf::Font* getFont1()						{ return m_font1; }
};


//#define SET_WINDOW_WIDTH(width) SC_Size::setWidth(width)
//#define SET_WINDOW_HEIGHT(height) SC_Size::setHeight(height)
#define WINDOW_WIDTH SC_Size::width()
#define WINDOW_HEIGHT SC_Size::height()

#define SET_WINDOW_SIZE(videoMode, width, height) \
if (width != 0) { SC_Size::setWidth(width); } \
	else { SC_Size::setWidth(videoMode.width); } \
if (height != 0) { SC_Size::setHeight(height); } \
	else { SC_Size::setHeight(videoMode.height); }


#define LOAD_FONT_1(filename) SC_Size::setFont1(filename)
#define FONT_1 SC_Size::getFont1()